package com.lintf.devdemo.service;

import com.lintf.devdemo.common.Result;
import org.springframework.web.multipart.MultipartHttpServletRequest;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @ system:Window
 * @ author:lin tingfeng
 * @ data:2022/10/19-15:09
 * @ package_name:com.lintf.devdemo.service
 * @ project_name:DevDemo
 * @ desc:图片文件处理逻辑层
 */
public interface ISysImageService {

    // 上传图片文件
    String uploadImage(HttpServletRequest request, HttpServletResponse response) throws IOException;

    // 上传头像图片
    Result uploadHeadImage(MultipartHttpServletRequest file) throws Exception;

    // 图片展示
    String showImgStream(String id);

}
